<div ng-form name="form" novalidate="novalidate" style="margin-bottom: 160px;">
    <table class="JSD">
<!--         <div class="header">
          <div>xs</div>
          <span>结算单编号：{{receipt.sn}}</span>
        </div> -->
        <!-- readonly：{{readonly}} -->
        <caption>
            <span class="j-title" style="width: 15%;" ng-class="{true:'border-red',false:''}[receipt.sales_channel == '']">
              <label>
                <input type="radio" name="sales_channel" 
                  ng-required="receipt.sales_channel == ''" 
                  ng-model="receipt.sales_channel" 
                  value="retail" 
                  ng-checked="true" 
                  ng-disabled="readonly == 'finance'">
                  零售
              </label>
              <label>
                <input type="radio" name="sales_channel" 
                ng-required="receipt.sales_channel == ''" 
                ng-model="receipt.sales_channel" 
                value="operation" 
                ng-disabled="readonly == 'finance'">
                营运
              </label>
              <label>
                <input type="radio" name="sales_channel" 
                ng-required="receipt.sales_channel == ''" 
                ng-model="receipt.sales_channel" 
                value="sub_saler" 
                ng-disabled="readonly == 'finance'">
                二网
              </label>
            </span>
            <span class="j-sn" style="width: 84%;">结算单编号：{{receipt.sn}}</span>
        </caption>
        <tr>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
        </tr>
        <tr>
            <td colspan="3">
                <span>合同单号:</span>
                <input style="width: calc(100% - 5em);"
                       type="text" name="contract_sn"
                       ng-required="true"
                       ng-model="receipt.contract_sn"
                       placeholder="" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="5">
                <span class="receipt-name">客户名:</span>
                <input style="width:calc(100% - 4em)"
                       type="text"
                       name="customer"
                       ng-required="true"
                       ng-model="receipt.customer" ng-readonly="readonly == 'finance'">

            </td>
            <td colspan="4">
                <span class="receipt-name">联系方式:</span>
                <input style="width:calc(100% - 5em)"
                       type="text" name="phone"
                       ng-required="true"
                       ng-model="receipt.phone" readonly ng-readonly="readonly == 'finance'">

            </td>
        </tr>

        <tr>
            <td colspan="4">
                <span class="receipt-name">车型:</span>
                <vm-selector ng-if="!validate_role('V_RECEIPT_VEHICLE_MODEL_FREE_EDIT')"
                        vehicle-model="receipt.vehicle"
                        level="2" name="vehicle"
                        ng-required="true"></vm-selector>

                <vm-input ng-if="validate_role('V_RECEIPT_VEHICLE_MODEL_FREE_EDIT')"
                        msrp="true"
                        ng-model = "receipt.vehicle"> </vm-input>
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="1">
                <span class="receipt-name">车色:</span>
                <input style="width:calc(100% - 3em)"
                        type="text"
                        name="color"
                       ng-model="receipt.color" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="1">
                <span>加装费:</span>
                <input style="width:calc(100% - 4em)"
                       type="text"
                       name="color_amount"
                       ng-model="receipt.color_amount" ng-readonly="readonly == 'finance'">
            </td>

            <td colspan="2">

                <span class="receipt-name">内饰:</span>
                <input style="width: calc(100% - 3em)"
                        type="text"
                        name="interior"
                       ng-model="receipt.interior" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="4">
                <span class="receipt-name">车架号:</span>
                <input style="width: calc(100% - 5em)"
                        class="receipt-input"
                        type="text"
                        name="vin"
                       ng-model="receipt.vin" ng-readonly="readonly == 'finance'">

            </td>
        </tr>

        <tr>
            <td colspan="8">费用明细</td>
            <td colspan="2">预算价</td>
            <td colspan="2">实际结算价</td>
        </tr>

        <tr>
            <td colspan="8">
                <span class="receipt-name">整车价格：标准价（</span>
                <span class="value center" style="min-width:6em;">
                    {{( receipt.msrp || 0 ) * 1
                    + ( receipt.color_amount || 0 ) * 1 }}
                </span>
                <!--<input style="width:8em;"-->
                       <!--type="text" name="msrp"-->
                       <!--ng-required="true"-->
                       <!--ng-model="receipt.msrp">-->
                <span class="receipt-name">）元</span>
            </td>
            <td colspan="2">
                <input class="receipt-input"
                       type="text"
                       name="bgt_amount"
                       ng-required="true"
                       ng-model="receipt.bgt_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input class="receipt-input"
                       type="text"
                       ng-model="receipt.fnl_bgt_amount"
                    ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>

        <tr>
            <td colspan="6">
                <span class="receipt-name">金融单位：</span>
                <input style="width: calc(100% - 7em)"
                       type="text"
                       name="loan_company"
                       ng-model="receipt.loan_company" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                首付款
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text" name=""
                        ng-model="receipt.down_payment" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
              <input class="receipt-input" type="text"  
                ng-model="receipt.fnl_down_payment" 
                ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>

        <tr>
            <td colspan="6">
                <span class="receipt-name">贷款</span>
                <input style="width: 4em"
                       type="text"
                       name="loan_month"
                       ng-required="receipt.loan_company"
                       ng-model="receipt.loan_years" ng-readonly="readonly == 'finance'">
                <span class="receipt-name">月</span>
                <span class="receipt-name">车辆抵押费：</span>
                <input style="width:7em"
                       type="text"
                       name="mortgage_amount"
                       ng-required="receipt.loan_company"
                       ng-model="receipt.mortgage_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                贷款金额
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text" name="loan_amount"
                       ng-required="receipt.loan_company"
                       ng-model="receipt.loan_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_loan_amount" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>

        <tr>
            <td colspan="6">
                <span class="receipt-name">预估月供：</span>
                <input style="width:7em"
                       type="text"
                       name="loan_every_month_amount"
                       ng-required="receipt.loan_company"
                       ng-model="receipt.loan_every_month_amount" ng-readonly="readonly == 'finance'">
                <span class="receipt-name">贴息：</span>
                <input style="width:7em"
                       type="text"
                       name="loan_subsidy_amount"
                       ng-required="receipt.loan_subsidy_amount"
                       ng-model="receipt.loan_subsidy_amount" ng-readonly="readonly == 'finance'">

            </td>
            <td colspan="2">服务费</td>
            <td colspan="2">
                <input class="receipt-input" type="text"
                       name="loan_service_amount"
                       ng-required="receipt.loan_company"
                       ng-model="receipt.loan_service_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2"> 
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_loan_service_amount" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="6" rowspan="2">
                <span style="font-size: 1.8em;color: red;float: left;padding-right: 5px;">*</span>
                <span>代收代付</span>
            </td>
            <td colspan="2" style="position: relative;" ng-init="receipt_city_show = false;">
                <span style="font-size: 1.8em;color: red;float: left;padding-right: 5px;">*</span>
                <span style="cursor: pointer;" title="请选择地区" ng-click="receipt_city_show = !receipt_city_show">
                    购置附加税
                    <i class="fa fa-angle-down"></i>
                </span>
                <div class="receipt-city-data" ng-show="receipt_city_show">
                    <label>
                        <input type="radio" name="city" value="0" ng-model="receipt.city" ng-click="receipt_city_show = !receipt_city_show">本市
                    </label>
                    <label>
                        <input type="radio" name="city" value="1" ng-model="receipt.city" ng-click="receipt_city_show = !receipt_city_show">外市
                    </label>
                </div>
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text"
                       name="purchase_tax"
                       ng-required="receipt.city == 0"
                       ng-model="receipt.purchase_tax" ng-show="receipt.city == 0" ng-readonly="readonly == 'finance'">
                <span ng-show="receipt.city == 1">客户自付</span>
            </td>
            <td colspan="2"> 
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_purchase_tax" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="2"> 车辆牌证费</td>
            <td colspan="2">
                <input class="receipt-input" type="text"
                       name="license_plate" ng-required="true"
                       ng-model="receipt.license_plate" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2"> 
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_license_plate" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="6">代办服务</td>
            <td colspan="2">代办服务费
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text"
                       name="service_amount"
                       ng-required="true"
                       ng-model="receipt.service_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_service_amount" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="6" rowspan="3">
                <p>
                    <span style="font-size: 1.8em;color: red;float: left;padding-right: 5px;">*</span>
                    <span class="receipt-name">保险公司：</span>
                    <input style="display:inline-block;width: calc(100% - 6em)"
                           class="receipt-input" type="text"
                           name="insurance_company"
                           ng-required="true"
                           ng-model="receipt.insurance_company" ng-readonly="readonly == 'finance'">
                </p>
                <p>
                   <span class="receipt-name color-open"
                              ng-click="receipt.detail_insurance()"
                              style="cursor: pointer;">保险项目：</span>
                    {{receipt.insurance_item}}
                    <span>
                        合计商业险（{{
                        receipt.insurance_item.indexOf(',') > 0
                        ?(receipt.insurance_item.indexOf('交强险')!=-1
                            ?receipt.insurance_item.split(',').length - 2
                            :receipt.insurance_item.split(',').length
                         )
                        :0
                        }}）项
                    </span>
                </p>
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="2">
              <span style="font-size: 1.8em;color: red;float: left;padding-right: 5px;">*</span>
              <span>第一年保险费</span>
            </td>
            <td colspan="2">
                <input name="insurance_amount" ng-required="true"
                ng-model="receipt.insurance_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text"  
                  ng-model="receipt.fnl_insurance_amount" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="2">车船使用税</td>
            <td colspan="2" ng-click="receipt.cal_vehicle_use_tax_input_hide($event)" >
            <input class="input-like"
                   value="{{receipt.vehicle_use_tax}}"
                   ng-show="!receipt.cal_vehicle_use_tax_input.show"
                   ng-required="true"
                   name=" vehicle_use_tax"
                   readonly ng-readonly="readonly == 'finance'">

            <input class="receipt-input"
                   type="text"
                   ng-blur="receipt.cal_vehicle_use_tax()"
                   ng-show="receipt.cal_vehicle_use_tax_input.show"
                   ng-model="receipt.cal_vehicle_use_tax_input.value" ng-readonly="readonly == 'finance'">

            </td>
            <td colspan="2">
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_vehicle_use_tax" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="2">续保预收款</td>
            <td colspan="2">
                <input class="receipt-input" type="text"
                       name="extended_insurance_amount"
                       ng-required="true"
                       ng-model="receipt.extended_insurance_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_extended_insurance_amount" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="6">
                自费装潢项目：共（{{
                (receipt.decoration_item_a ? 1 : 0)
                + (receipt.decoration_item_b ? 1 : 0)
                + (receipt.decoration_item_c ? 1 : 0)
                + (receipt.decoration_item_d ? 1 : 0)
                + (receipt.decoration_item_e ? 1 : 0)
                + (receipt.decoration_item_f ? 1 : 0)
                + (receipt.decoration_item_g ? 1 : 0)
                + (receipt.decoration_item_h ? 1 : 0)
                + (receipt.decoration_item_i ? 1 : 0)
                + (receipt.decoration_item_j ? 1 : 0)
                + (receipt.decoration_item_k ? 1 : 0)
                + (receipt.decoration_item_l ? 1 : 0)
                + (receipt.decoration_item_m ? 1 : 0)
                + (receipt.decoration_item_n ? 1 : 0)
                + (receipt.decoration_item_o ? 1 : 0)
                }}）件，
                <span>金额
                <input style="width: 5em"
                       class="w15 receipt-input"
                       ng-model="receipt.decoration_fee" readonly ng-readonly="readonly == 'finance'">
                    元
                </span>
            </td>
            <td colspan="2" rowspan="13">装潢付费合计 </td>
            <td colspan="2" rowspan="13" style="position: relative">
                <input type="text" name="decoration_amount"
                       ng-required="true" class="receipt-input absolute-fix"
                       ng-model="receipt.decoration_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2" rowspan="13">
                <input class="receipt-input" type="text" 
                  ng-model="receipt.fnl_decoration_amount" 
                  ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目一：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_a_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" class="receipt-input"
                       ng-model="receipt.decoration_item_a_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目二：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_b_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_b_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目三：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_c_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_c_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目四：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_d_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_d_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目五：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_e_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_e_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目六：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_f_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_f_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目七：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_g_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_g_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目八：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_h_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_h_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目九：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_i_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_i_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目十：</span>
                <input style="width:calc(100% - 9em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_j_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_j_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十一：</span>
                <input style="width:calc(100% - 10em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_k_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_k_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十二：</span>
                <input  style="width:calc(100% - 10em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_l_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_l_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目十三：</span>
                <input style="width:calc(100% - 10em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_m_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_m_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十四：</span>
                <input style="width:calc(100% - 10em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_n_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="receipt-input"
                       ng-model="receipt.decoration_item_n_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十五：</span>
                <input style="width:calc(100% - 10em)"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_o_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                        type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_item_o_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>

        <tr>
            <td colspan="6">
                车价内已包含：共（{{
                (receipt.decoration_send_item_a ? 1 : 0)
                + (receipt.decoration_send_item_b ? 1 : 0)
                + (receipt.decoration_send_item_c ? 1 : 0)
                + (receipt.decoration_send_item_d ? 1 : 0)
                + (receipt.decoration_send_item_e ? 1 : 0)
                + (receipt.decoration_send_item_f ? 1 : 0)
                + (receipt.decoration_send_item_g ? 1 : 0)
                + (receipt.decoration_send_item_h ? 1 : 0)
                + (receipt.decoration_send_item_i ? 1 : 0)
                + (receipt.decoration_send_item_j ? 1 : 0)
                + (receipt.decoration_send_item_k ? 1 : 0)
                + (receipt.decoration_send_item_l ? 1 : 0)
                + (receipt.decoration_send_item_m ? 1 : 0)
                + (receipt.decoration_send_item_n ? 1 : 0)
                + (receipt.decoration_send_item_o ? 1 : 0)
                }}）件，
                <span>金额
                <input style="width: 5em"
                       class="w15 receipt-input"
                       ng-model="receipt.decoration_send_fee" readonly ng-readonly="readonly == 'finance'">
                    元
                </span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目一：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_a_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_a_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目二：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_b_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_b_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目三：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_c_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_c_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目四：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_d_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_d_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目五：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_e_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_e_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目六：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_f_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_f_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目七：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_g_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_g_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目八：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_h_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_h_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目九：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_i_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_i_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目十：</span>
                <input style="width:calc(100% - 9em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_j_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_j_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十一：</span>
                <input style="width:calc(100% - 10em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_k_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_k_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十二：</span>
                <input  style="width:calc(100% - 10em)"
                        type="text" name="" class="i84 receipt-input"
                        ng-model="receipt.decoration_send_item_l_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_l_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="receipt-name">项目十三：</span>
                <input style="width:calc(100% - 10em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_m_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_m_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十四：</span>
                <input style="width:calc(100% - 10em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_n_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_n_price" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">项目十五：</span>
                <input style="width:calc(100% - 10em)"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_o_name" ng-readonly="readonly == 'finance'">
                <input style="width:4em"
                       type="text" name="" class="i84 receipt-input"
                       ng-model="receipt.decoration_send_item_o_price" ng-readonly="readonly == 'finance'">
            </td>
        </tr>

        <tr>
            <td colspan="3">
                <p><span class="receipt-name color-open"
                         ng-click="receipt.after_sale_send_item_open()"
                         style="cursor: pointer;">车价内已包含售后项目：</span>
                    <span>
                </p>
                <p>
                  <span>{{receipt.after_sale_send_items}}合计金额（{{receipt.after_sale_send_total_price}}）元</span>
                </p>
                <!-- <p>
                    <input type="text" class="receipt-input"
                           style="min-width:5em; width: calc(100% - 10em)"
                           name="after_sale_send_items"
                           ng-model="receipt.after_sale_send_items">
                    <span class="receipt-name">金额：</span>
                    <input type="text" class="receipt-input"
                           style="width:4em"
                           name="after_sale_send_total_price"
                           ng-required="true"
                           ng-model="receipt.after_sale_send_total_price">
                    <span class="receipt-name">元</span>
                </p> -->
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="3">
                <p>其它项目：</p>
                <p>
                    <input type="text" class="receipt-input"
                           style="min-width:5em; width: calc(100% - 10em)"
                           name="extra_item"
                           ng-model="receipt.extra_item" ng-readonly="readonly == 'finance'">

                    <span class="receipt-name">金额：</span>
                    <input type="text" class="receipt-input"
                           style="width:4em" name="extra_amount"
                           ng-required="true"
                           ng-model="receipt.extra_amount" ng-readonly="readonly == 'finance'">
                    <span class="receipt-name">元</span>
                </p>
            </td>
        </tr>
        <tr ng-show="receipt.customer_source == 4 ">
            <td colspan="6">
                <p><span class="receipt-name color-open"
                         ng-click="receipt.open_jipan_item()"
                         style="cursor: pointer;">
                    基盘项目：</span>

                    {{receipt.jipan_send_items}} -- {{receipt.jipan_send_items_price}} 元</span></p>
            </td>
        </tr>


        <tr>
            <td colspan="6">
                <span class="receipt-name" ng-click="receipt.test_years();">延长车辆质保期</span>
                <label><input type="radio" name="years" value="1"
                              ng-model="receipt.extended_service_years" ng-click="receipt.years(1)">1年</label>
                <label><input type="radio" name="years" value="2"
                              ng-model="receipt.extended_service_years" ng-click="receipt.years(2)">2年</label>
                <label><input type="radio" name="years" value="3"
                              ng-model="receipt.extended_service_years" ng-click="receipt.years(3)">3年</label>
                <label><input type="radio" name="years" value="5"
                              ng-model="receipt.extended_service_years" ng-click="receipt.years(5)">5年</label>

                <label ng-show="receipt.extended_service_years != '0'" style="{{receipt.extended_service_brand ?'':'border: 1px solid red'}}"><input type="radio" name="extended_service_brand" value="0"
                              ng-model="receipt.extended_service_brand" ng-required="receipt.extended_service_years !== 0">华成延保</label>

                <label ng-show="receipt.extended_service_years != '0'" style="{{receipt.extended_service_brand ?'':'border: 1px solid red'}}"><input type="radio" name="extended_service_brand" value="1"
                              ng-model="receipt.extended_service_brand" ng-required="receipt.extended_service_years !== 0">品牌延保</label>
                <!-- <label><input type="radio" name="years" value="0"
                              ng-model="receipt.extended_service_years">无</label> -->
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="2">
                延保费用
            </td>
            <td colspan="2">
                <input class="receipt-input" type="text"
                       name="extended_service_amount"
                       ng-required="true"
                       ng-model="receipt.extended_service_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">  </td>
        </tr>
        <tr class="align-center">
            <td colspan="2" rowspan="2">
                其他
            </td>
            <td colspan="2">
                <span class="receipt-name">项目1：</span>
                <!--<select ng-model="receipt.is_ab" style="width:calc(100% - 5em)">-->
                  <!--<option value="A">轮胎险A</option>-->
                  <!--<option value="B">轮胎险B</option>-->
                <!--</select>-->
                 <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" disabled
                       name="tyre_insurance_price" value="轮胎险" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">金额：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text"
                       name="million_insurance_amount"
                       ng-model="receipt.tyre_insurance_price" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
            <td colspan="3">
                <span class="receipt-name">项目2：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" ng-model="receipt.custom_item_1_name"
                       name="" ng-readonly="readonly == 'finance'"
                       >
            </td>
            <td colspan="3">
                <span class="receipt-name">金额：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" ng-model="receipt.custom_item_1_amount"
                       name="" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
        </tr>
        <tr class="align-center">
            <td colspan="2">
                <span class="receipt-name">项目3：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" disabled
                       name="million_insurance_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="2">
                <span class="receipt-name">金额：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" disabled
                       name="million_insurance_amount" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
            <td colspan="3">
                <span class="receipt-name">项目4：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" disabled
                       name="million_insurance_amount" ng-readonly="readonly == 'finance'">
            </td>
            <td colspan="3">
                <span class="receipt-name">金额：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text" disabled
                       name="million_insurance_amount" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
        </tr>

        <tr>
            <td colspan="8">
                <span class="receipt-name">收费合计：（</span>
                <checkboxes ng-model="receipt.pay_type">
                    <label>
                        <input type="checkbox" name="xianjin">现金
                    </label>
                    <label>
                        <input type="checkbox" name="zhipiao">支票
                    </label>
                    <label>
                        <input type="checkbox" name="shuaka">刷卡
                    </label>
                    <label>
                        <input type="checkbox" name="weixin">微信
                    </label>
                    <label>
                        <input type="checkbox" name="zhifubao">支付宝
                    </label>
                    <label>
                        <input type="checkbox" name="qita">其它
                    </label>
                </checkboxes>
                <span class="receipt-name">）</span>
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="2">
                {{
                (receipt.loan_years&& receipt.loan_years != 0)
                ?(
                (receipt.down_payment || 0) * 1 +

                (receipt.loan_service_amount || 0) * 1 +
                (receipt.loan_subsidy_amount || 0) * 1
                + (receipt.purchase_tax || 0) * 1 + (receipt.license_plate
                || 0) * 1
                +(receipt.mortgage_amount||0)*1
                + (receipt.service_amount || 0) * 1 +
                (receipt.insurance_amount || 0) * 1 +
                (receipt.extended_service_amount || 0) * 1
                + (receipt.vehicle_use_tax || 0) * 1
                + (receipt.extended_insurance_amount || 0) * 1 +
                (receipt.decoration_amount || 0) * 1
                + (receipt.tyre_insurance_price||0)*1
                - (receipt.replacement_amount || 0) * 1
                ):(
                (receipt.bgt_amount || 0) * 1 + (receipt.purchase_tax || 0)
                * 1 + (receipt.license_plate || 0) * 1
                + (receipt.service_amount || 0) * 1 +
                (receipt.insurance_amount || 0) * 1 +
                (receipt.vehicle_use_tax || 0) * 1
                            + (receipt.extended_service_amount || 0) * 1
                + (receipt.extended_insurance_amount || 0) * 1 +
                (receipt.decoration_amount || 0) * 1
                + (receipt.tyre_insurance_price||0)*1
                - (receipt.replacement_amount || 0) * 1
                )
                }}
                <span style="position: absolute;right:1em">元</span>
            </td>
            <td colspan="2"></td>
        </tr>

        <tr>
            <td colspan="6">
                <span class="receipt-name">结账应收/付款（</span>

                <label><input type="radio" name="add_or_return"
                              ng-model="receipt.further_pay_type"
                              value="0">退还</label>
                <label><input type="radio" name="add_or_return"
                              ng-model="receipt.further_pay_type"
                              value="1">补差</label>

                <input style="width:5em"
                       type="text"
                       name=""
                       class="receipt-input w30"
                       step="1"
                       ng-model="receipt.further_pay_amount">

                <span class="receipt-name">元）</span>

                <span class="receipt-name"
                      style="position: absolute; right:1em">数量合计：{{receipt.count}}</span>
                <div class="td-readonly" ng-show="readonly == 'finance'"></div>
            </td>
            <td colspan="3">
                <span class="receipt-name">总应收：{{
                (receipt.count || 1) * (
                    (
                            (receipt.loan_years&& receipt.loan_years != 0)
                            ?(
                            (receipt.down_payment || 0) * 1

                            + (receipt.mortgage_amount||0)*1
                            + (receipt.loan_service_amount || 0) * 1
                            + (receipt.loan_subsidy_amount || 0) * 1
                            + (receipt.purchase_tax || 0) * 1 + (receipt.license_plate || 0) * 1
                            + (receipt.service_amount || 0) * 1 + (receipt.insurance_amount || 0) * 1 + (receipt.vehicle_use_tax || 0) * 1
                            + (receipt.extended_insurance_amount || 0) * 1 + (receipt.decoration_amount || 0) * 1
                            + (receipt.extended_service_amount || 0) * 1
                            + (receipt.tyre_insurance_price||0)*1
                            - (receipt.replacement_amount || 0) * 1
                            ):(
                            (receipt.bgt_amount || 0) * 1  + (receipt.purchase_tax || 0) * 1 + (receipt.license_plate || 0) * 1
                            + (receipt.service_amount || 0) * 1 + (receipt.insurance_amount || 0) * 1 + (receipt.vehicle_use_tax || 0) * 1
                            + (receipt.extended_insurance_amount || 0) * 1 + (receipt.decoration_amount || 0) * 1
                            + (receipt.extended_service_amount || 0) * 1
                            + (receipt.tyre_insurance_price||0)*1
                            - (receipt.replacement_amount || 0) * 1
                            )
                    )
                    || 0
                    )
                    + 1.0*(receipt.further_pay_type
                        ?(receipt.further_pay_type*1 == 1
                            ? receipt.further_pay_amount
                            :(0 - receipt.further_pay_amount)
                          )
                        :0)
                    }}
                </span>
                <span style="position: absolute;right:1em">元</span>
            </td>
            <td colspan="3">
                <span class="receipt-name">总应付：</span>
                <input class="receipt-input" type="text" style="width: 6em;" 
                    ng-model="receipt.fnl_total_amount" 
                    ng-show="readonly == 'finance' && receipt.finance_status == '1'" 
                    ng-required="readonly == 'finance' && receipt.finance_status == '1'">
                <span style="position: absolute;right:1em">元</span>
            </td>
            <div class="td-readonly" ng-show="readonly == 'finance'"></div>
        </tr>

        <tr>
            <td colspan="12">
                <div class="receipt-item">
                    <span class="receipt-name" style="color: #000;font-size: 1.4em;font-weight: bold;font-family: 'SimHei';">备注：
                      "<span style="color:red">*</span>"为代收代办服务项目，结算以最终发票价为准。</span>
                </div>
            </td>
        </tr>

        <tr>
            <td colspan="2">百万身驾</td>
            <td colspan="2">
                <span class="receipt-name">主险：</span>
                <input style="width:calc(100% - 5em)"
                       class="receipt-input i84"
                       type="text"
                       name="million_insurance_amount"
                       ng-model="receipt.million_insurance_amount" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
            <td colspan="2">
                <span class="receipt-name">每年：</span>
                <input style="width:calc(100% - 5em)"
                        class="receipt-input i84" type="text"
                       name="million_insurance_year_amount"
                       ng-model="receipt.million_insurance_year_amount" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
            <td colspan="3">
                <span class="receipt-name">附加险：</span>
                <input style="width:calc(100% - 6em)"
                        class="receipt-input i84" type="text"
                       name="million_insurance_extra_amount"
                       ng-model="receipt.million_insurance_extra_amount" ng-readonly="readonly == 'finance'">
                <span >元</span>
            </td>
            <td colspan="3">
                <span class="receipt-name">年数：</span>
                <input style="width:calc(100% - 5em)"
                        class="receipt-input i84"
                        type="text"
                       step="1" name="million_insurance_years"
                       ng-model="receipt.million_insurance_years" ng-readonly="readonly == 'finance'">
                <span >年</span>
            </td>
        </tr>

        <tr>
            <td colspan="2">置换信息</td>
            <td colspan="2">
                <span class="receipt-name">车型</span>
                <input style="width:calc(100% - 5em)"
                        class="receipt-input i84" type="text"
                       name="replacement_vehicle"
                       ng-model="receipt.replacement_vehicle" ng-readonly="readonly == 'finance'">

            </td>
            <td colspan="2">
                <span class="receipt-name">行驶里程</span>
                <input style="width:calc(100% - 7em)"
                       class="receipt-input i84" type="text"
                       name="replacement_miles"
                       ng-model="receipt.replacement_miles" ng-readonly="readonly == 'finance'">
                <span >公里</span>

            </td>
            <td colspan="3">
                <span class="receipt-name">颜色</span>
                <input style="width:calc(100% - 5em)"
                        class="receipt-input i84" type="text"
                       name="replacement_color"
                       ng-model="receipt.replacement_color" ng-readonly="readonly == 'finance'">

            <td colspan="3">
                <span class="receipt-name">评估价格</span>
                <input style="width:calc(100% - 7em)"
                        class="receipt-input i84" type="text"
                       name="replacement_price"
                       ng-model="receipt.replacement_price" ng-readonly="readonly == 'finance'">
                <span >元</span>

            </td>
        </tr>
        <tr class="align-center">
            <td colspan="2"> 总经理 </td>
            <td colspan="2"> 财务经理 </td>
            <td colspan="2"> 销售经理 </td>
            <td colspan="3"> 销售客户经理 </td>
            <td colspan="3"> 客户 </td>
        </tr>
        <tr class="sign">
            <td colspan="2"> </td>
            <td colspan="2"> </td>
            <td colspan="2"> </td>
            <td colspan="3"> </td>
            <td colspan="3"> </td>
        </tr>

        <tr class="align-center">
            <td rowspan="6" colspan="2">
                付<br/>
                款<br/>
                记<br/>
                录
            </td>
            <td colspan="2"> 付款时间 </td>
            <td colspan="2"> 付款金额 </td>
            <td colspan="2"> 付款方式 </td>
            <td colspan="2"> 出纳签章 </td>
            <td colspan="2"> 客户确认签字 </td>
        </tr>
        <tr> 
            <td colspan="2">
                <datetimepicker class="search-date-start"
                            min-view="2"
                            ng-model="receipt.deposit_date"
                            ng-readonly="receipt.finance_status == '1'"
                            ng-show="readonly == 'finance'"
                            ng-required="readonly == 'finance' && receipt.finance_status == '0'">
                </datetimepicker>
            </td>
            <td colspan="2">
                <input type="number" ng-model="receipt.deposit"
                        ng-readonly="receipt.finance_status == '1'"
                        ng-show="readonly == 'finance'"
                        ng-required="readonly == 'finance' && receipt.finance_status == '0'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.deposit_type"
                    ng-readonly="receipt.finance_status == '1'"
                    ng-show="readonly == 'finance'"
                    ng-required="readonly == 'finance' && receipt.finance_status == '0'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.deposit_operator"
                    ng-readonly="receipt.finance_status == '1'"
                    ng-show="readonly == 'finance'"
                    ng-required="readonly == 'finance' && receipt.finance_status == '0'">
            </td>
          <td colspan="2"> </td>
        </tr>
        <tr>
            <td colspan="2">
                <datetimepicker class="search-date-start"
                                min-view="2"
                                ng-model="receipt.pay_record_1_date"
                                ng-readonly="receipt.finance_status == '0'"
                                ng-show="readonly == 'finance'">
                </datetimepicker>
            </td>
            <td colspan="2">
                <input type="number" ng-model="receipt.pay_record_1_amount"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_1_type"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_1_operator"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2"> </td>
        </tr>
        <tr>
            <td colspan="2">
                <datetimepicker class="search-date-start"
                                min-view="2"
                                ng-model="receipt.pay_record_2_date"
                                ng-readonly="receipt.finance_status == '0'"
                                ng-show="readonly == 'finance'">
                </datetimepicker>
            </td>
            <td colspan="2">
                <input type="number" ng-model="receipt.pay_record_2_amount"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_2_type"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_2_operator"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2"> </td>
        </tr>
        <tr>
            <td colspan="2">
                <datetimepicker class="search-date-start"
                                min-view="2"
                                ng-model="receipt.pay_record_3_date"
                                ng-readonly="receipt.finance_status == '0'"
                                ng-show="readonly == 'finance'">
                </datetimepicker>
            </td>
            <td colspan="2">
                <input type="number" ng-model="receipt.pay_record_3_amount"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_3_type"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_3_operator"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2"> </td>
        </tr>
        <tr>
            <td colspan="2">
                <datetimepicker class="search-date-start"
                                min-view="2"
                                ng-model="receipt.pay_record_4_date"
                                ng-readonly="receipt.finance_status == '0'"
                                ng-show="readonly == 'finance'">
                </datetimepicker>
            </td>
            <td colspan="2">
                <input type="number" ng-model="receipt.pay_record_4_amount"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_4_type"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2">
                <input type="text" ng-model="receipt.pay_record_4_operator"
                       ng-readonly="receipt.finance_status == '0'"
                       ng-show="readonly == 'finance'">
            </td>
            <td colspan="2"> </td>
        </tr>
    </table>
</div>